package com.itheima.mapper;

import com.itheima.entity.EmpExpr;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface EmpExprMapper {
    /*
    批量插入员工经历数据
     */
    void insertExpr(List<EmpExpr> exprList);

    void delete(List<Integer> ids);

    /*
    查询员工经历
     */
    @Select("select * from emp_expr where emp_id=#{id}")
    List<EmpExpr> getById(Integer id);
}
